
// 引入的是名为createApp的工厂函数  不再是Vue构造函数
import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index.js'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import store from './store/index.js'

// import * as ElementPlusIconsVue from '@element-plus/icons-vue'



const app = createApp(App)
// 全局注册
// for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
//   app.component(key, component)
// }
// app.component("Delete",Delete)

app.use(ElementPlus)
app.use(store)
app.use(router)
// console.log(app);
// 挂载
app.mount('#app')

// setTimeout(() => {
//   app.unmount('#app')
// }, 1000)
/* 
const vm = new Vue({
  render:h => h(App)
})
vm.$mount('#app')
*/